package com.lavegue.dao.impl;

import java.util.List;

import com.lavegue.common.BaseHibernateDao;
import com.lavegue.dao.ManageUserInfoDao;
import com.lavegue.model.ManageUserInfo;
import com.lavegue.model.UserInfo;

/**
 * author: luoweibin
 * date:2011-12-20
 * description:
 *
 */
public class ManageUserInfoDaoImpl extends BaseHibernateDao<ManageUserInfo, Integer> implements ManageUserInfoDao {

	public ManageUserInfoDaoImpl() {
		super(ManageUserInfo.class);
	}
    
	public ManageUserInfo findByAccount(String account) {
		List list = this.getHibernateTemplate().find("from ManageUserInfo where account=?", account);
		if (!list.isEmpty()) {
			return (ManageUserInfo) list.get(0);
		}
		return null;
	}

}

